import request from '@/utils/request'

// 列表
export function listChildren(query) {
  return request({
    url: '/gene/drug/children/listChildren', method: 'get', params: query
  })
}

/**
 * 知识库 查询儿童用药列表
 * @param query
 * @returns {*}
 */
export function listKnowledgeChildren(query) {
  return request({
    url: '/gene/drug/children/listKnowledgeChildren', method: 'get', params: query
  })
}

/**
 * 药物用药交代保存意见
 * @return
 * @param data
 */
export function saveAuditOpinion(data) {
  return request({
    url: '/gene/drug/children/saveAuditOpinion', method: 'post', data: data
  })
}

// 修改
export function updateDrugChildren(data) {
  return request({
    url: '/gene/drug/children/update', method: 'post', data: data
  })
}

// 添加
export function addDrugChildren(data) {
  return request({
    url: '/gene/drug/children/add', method: 'post', data: data
  })
}
